<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="author" content="">
    <title>添加门店</title>
    <% include("../inc/input_css.html"){}%>
    <style>
        label{
            width: 140px!important;
        }
    </style>

    <%
        var isAdd = false;
        var isEdit = false;
        if(isEmpty(interfaceManage.id)){
            isAdd = true;
        }else{
            isEdit = true;
        }
    %>

</head>
<body>

<div class="ibox">
    <div class="ibox-title">
        <div class="pull-left mbx navbar_title">
            <span class="current">第三方接入</span>
            <span class="line">/</span>
            <span class="current"><a href="/sys/interface/list">接口管理</a></span><span class="line">/</span>
            <%if(isAdd){%>添加接口<%}else{%>编辑<%}%>
        </div>
    </div>
    <div class="ibox-content">
        <div class="wrapper wrapper-content">
            <div class="row">
                <div class="padding-40">
                    <form method="post" action="<%if (isAdd){%>/sys/interface/save<%}else{%>/sys/interface/update<%}%>" class="form-horizontal form-validate">
                        <input type="hidden" name="interfaceManage.id" value="${interfaceManage.id!}"/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="maroon">*</span>接口名称</label>
                            <div class="col-sm-3">
                                <input type="text" name="interfaceManage.name" value="${interfaceManage.name!}" class="form-control light-input" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="maroon">*</span>所属系统名称</label>
                            <div class="col-sm-3">
                                <input type="text" name="interfaceManage.system_name" value="${interfaceManage.system_name!}" class="form-control light-input" required>
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="maroon">*</span>接口地址</label>
                            <div class="col-sm-3">
                                <input type="text" name="interfaceManage.url" value="${interfaceManage.url!}" class="form-control light-input" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">参数描述</label>
                            <div class="col-sm-3">
                                <textarea rows="5" cols=""name="interfaceManage.parameter_description" class="form-control light-input">${interfaceManage.parameter_description!}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">返回说明</label>
                            <div class="col-sm-3">
                                <textarea rows="5" cols="" name="interfaceManage.return_description" class="form-control light-input">${interfaceManage.return_description!}</textarea>
                            </div>
                        </div>

                        <div class="form-group" style="margin-top: 24px">
                            <label class="col-sm-2 control-label "></label>
                            <div class="col-sm-4 col-sm-offset-0">
                                <button class="hive-btn-cancle" id="btn_cancle" type="button" onclick="history.back()">&nbsp;取消&nbsp;</button>
                                <button class="hive-btn hive-btn-primary margin-left-8" type="submit">&nbsp;提交&nbsp;
                                </button>
                            </div>
                        </div>

                    </form>


                </div>
            </div>
        </div>
    </div>
</div>
<% include("../inc/input_js.html"){}%>
</body>
</html>